#ifndef CLIENT_H
#define CLIENT_H

#include <QObject>
#include <QByteArray>

#include "httprequest.h"

class QTcpSocket;


class Client : public QObject
{
    Q_OBJECT

public:
    Client(QTcpSocket *socket, QObject *parent = 0);


    void close();

Q_SIGNALS:
    void disconnected();

private Q_SLOTS:
    void emitDisconnected();

protected:
    QTcpSocket *p_socket;
};

#endif // CLIENT_H
